<template>
	<view class="logout-box">
		<button type="default" class="custom-button logout" @click="logout">
			<text>退出登录</text>
		</button>
		<view class="agreement">
			<view class="agreement-box">
				<text @click="agreement">《用户协议》</text>及
				<text @click="privacy">《隐私政策》</text>
			</view>
		</view>
	</view>

</template>

<script>
	export default {
		data() {
			return {
	
			}
		},
		methods: {
	     agreement(){
			 uni.navigateTo({
			 	url:'/pages/my/agreement'
			 });
		 },
		 privacy(){
			 uni.navigateTo({
			 	url:'/pages/my/privacy'
			 });
		 },
		 //退出登录
		 logout() {
			 console.log("ss")
			 uni.navigateTo({
			 	url: '../../pages/login/login'
			 })
		 }
	
		},
	}
</script>

<style lang="less">
	.logout-box{
		background-color: #EEEEEE;
		padding: 40rpx 0;
	}
	.logout {
		width: 700rpx;
		height: 100rpx;
		line-height: 100rpx;
		background: #99C1FF;
		border-radius: 10rpx;
		margin-bottom: 10rpx;
	}

	.logout text {
		width: 149rpx;
		height: 34rpx;
		font-size: 36rpx;
		font-family: Source Han Sans CN;
		font-weight: 500;
		color: #FFFFFF;
		line-height: 41rpx;
		padding-bottom: 20rpx;
	}
	.agreement{
		width: 100%;
		text-align: center;
		height: 29rpx;
		font-size: 30rpx;
		font-family: Source Han Sans CN;
		font-weight: 400;
		color: #5696F8;
		display: block;
		margin: 0 auto;
		padding: 10rpx 0;
		background-color: #EEEEEE;
		.agreement-box{
			
		}
	}
</style>
